import 'package:wch/generated/json/base/json_field.dart';
import 'dart:convert';

import '../generated/json/patient_template.g.dart';

@JsonSerializable()
class PatientTemplateModel {
	String? code;
	String? msg;
	PatientTemplateData? data;

	PatientTemplateModel();

	factory PatientTemplateModel.fromJson(Map<String, dynamic> json) => $PatientTemplateModelFromJson(json);

	Map<String, dynamic> toJson() => $PatientTemplateModelToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class PatientTemplateData {
	int? pageIndex;
	int? pageSize;
	int? totalPage;
	int? totalCount;
	List<PatientTemplateDataData>? data;
	int? total;
	int? current;
	dynamic records;
	int? size;
	int? pages;

	PatientTemplateData();

	factory PatientTemplateData.fromJson(Map<String, dynamic> json) => $PatientTemplateDataFromJson(json);

	Map<String, dynamic> toJson() => $PatientTemplateDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class PatientTemplateDataData {
	String? id;
	int? hospitalId;
	int? doctorId;
	int? num;
	String? templateName;
	String? adminUser;
	String? createTime;
	String? updateTime;
	dynamic list;

	PatientTemplateDataData();

	factory PatientTemplateDataData.fromJson(Map<String, dynamic> json) => $PatientTemplateDataDataFromJson(json);

	Map<String, dynamic> toJson() => $PatientTemplateDataDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}